package com.zhengke.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhengke.dao.ReservationLimitManagementDao;
import com.zhengke.pojo.SysareaEntity;
import com.zhengke.service.ReservationLimitManagementService;

@Service
public class ReservationLimitManagementServiceImpl implements ReservationLimitManagementService {

	//调用dao层的接口
	@Autowired
	ReservationLimitManagementDao reservationDao;

	@Override
	public List<SysareaEntity> querryReservationLimitManagementTreeMethod(String area_parent_id) {
		
		return reservationDao.querryReservationLimitManagementTreeMethod(area_parent_id);
	}

	@Override
	public List<Map<String, Object>> querryReservationGoodsByAreaId(Map<String, Object> message) {
		
		return reservationDao.querryReservationGoodsByAreaId(message);
	}

	@Override
	public int deleteGoodsById(String id) {
		
		return reservationDao.deleteGoodsById(id);
	}

	@Override
	public String getTotalMethod(String areaId) {
		
		return reservationDao.getTotalMethod(areaId);
	}

	@Override
	public int updateGoodLImit(Map<String, Object> messageMap) {
		
		return reservationDao.updateGoodLImit(messageMap);
	}
}
